<?php /**
 * @author ava
 * @package Kpl
 * @version $Id: default.phtml 412 2009-05-18 20:45:53Z Alexander.Anokhin $
 */ ?><?= $this->doctype() ?> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head>
<?= $this->headMeta()
	->appendHttpEquiv('Content-Type', 'text/html; charset=WINDOWS-1251')
	->appendName('Author', 'Vladimir G. Bulov')
	->appendName('Author', 'Alexander V. Anokhin')
	->appendName('Author', 'Denis V. Kozlov')
	->appendName('Author', 'Taras V. Zinchenko');	 ?>
<?= $this->headTitle('HH-Bill Information System')	 ?>
<?php
$baseURL =  Zend_Controller_Front::getInstance()->getRequest()->getBaseUrl();
?>
<script language="javascript">
baseURL = '<?= $baseURL ?>';
</script>
<?php

$this->jQuery()
					 ->addJavascriptFile($this->jQueryBaseUrl . '/plugins/jquery-treeview/jquery.treeview.pack.js')
					 ->addStylesheet($this->jQueryBaseUrl . '/plugins/jquery-treeview/jquery.treeview.css')
					 ->addJavascriptFile($this->jQueryBaseUrl . '/plugins/jquery-treeview/lib/jquery.cookie.js')
					 ->addStylesheet($this->jQueryBaseUrl . '/ui.themes/smoothness/jquery-ui-1.7.1.custom.css')
					 ->addJavascriptFile($this->jQueryBaseUrl . '/ui/ui.autocomplete.js')
					 ->addStylesheet($this->jQueryBaseUrl . '/ui.themes/smoothness/ui.autocomplete.css')
					 					 
					 ->onLoadCaptureStart(); ?>
$("#menu > ul").attr('class', 'treeview-grey')
			   .treeview({
			   		  collapsed: true
			   		, persist: "cookie"
			   		, unique: true 
			   		   });
<?php 	$this->jQuery()->onLoadCaptureEnd();
		$this->jQuery()->setUiLocalPath($this->jQueryBaseUrl . "/ui/jquery-ui-1.7.1.custom.min.js");
		$this->headLink()->appendStylesheet($this->baseUrl . '/application/public/styles/kpl.css', 'screen')
?>
<?= $this->jQuery() ?>
<?= $this->headScript() ?>
<?= $this->headStyle() ?>
<?= $this->headLink() ?>
</head>
<body>
<div id="container">
	<div id="header">
		<span id="project_name">HouseHolder's Billing System (Web version)</span>
		<div class="info">
		  	<?= $this->UserInfo() ?>
		</div>
	</div>
	<div id="wrapper">
		<div id="content"><?= $this->layout()->content ?></div>
	</div>
	<div id="navigation"><?= $this->action("menu","login") ?></div>
	<?php if(is_array($this->messages) && !empty($this->messages)) { ?>
	<div id="extra">
		<?= $this->HtmlList($this->messages) ?>
	</div>
	<?php } ?>
</div>  
<div id="footer"><p>&copy;2008 GPLv3</p></div>
<?= $this->inlineScript() ?>
</body>
</html>
